﻿using System;
using System.Runtime.Serialization;

namespace OCXS.OCXSServiceLibrary.OPCXMLDA10 {

    [DataContract(Namespace = "http://opcfoundation.org/webservices/XMLDA/1.0/")]
    public enum qualityBits {

        [EnumMember(Value = "Bad")]
        bad,

        [EnumMember(Value = "BadConfigurationError")]
        badConfigurationError,

        [EnumMember(Value = "BadNotConnected")]
        badNotConnected,

        [EnumMember(Value = "BadDeviceFailure")]
        badDeviceFailure,

        [EnumMember(Value = "BadSensorFailure")]
        badSensorFailure,

        [EnumMember(Value = "BadLastKnownValue")]
        badLastKnownValue,

        [EnumMember(Value = "BadCommFailure")]
        badCommFailure,

        [EnumMember(Value = "BadOutOfService")]
        badOutOfService,

        [EnumMember(Value = "BadWaitingForInitialData")]
        badWaitingForInitialData,

        [EnumMember(Value = "Uncertain")]
        uncertain,

        [EnumMember(Value = "UncertainLastUsableValue")]
        uncertainLastUsableValue,

        [EnumMember(Value = "UncertainSensorNotAccurate")]
        uncertainSensorNotAccurate,

        [EnumMember(Value = "UncertainEUExceeded")]
        uncertainEUExceeded,

        [EnumMember(Value = "UncertainSubNormal")]
        uncertainSubNormal,

        [EnumMember(Value = "Good")]
        good,

        [EnumMember(Value = "GoodLocalOverride")]
        goodLocalOverride,

    }
}
